ValidatedDouble

constructor(minValue: Double, maxValue: Double, widgetType: ValidatedNumber.WidgetType = WidgetType.SLIDER)

A validated double number with a default selected from the min of the allowable range.

Author

fzzyhmstrs

Since

0.2.0

Parameters

minValue

Double. the minimum allowed value, inclusive

maxValue

Double. the maximum allowed value, inclusive

widgetType

WidgetType defines what the config GUI widget looks like


constructor(defaultValue: Double)

an unbounded validated double number.

The validation will be limited to ensuring the value de/serializes as a double, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0

Parameters

defaultValue

Double. the default value of this wrapper


constructor()

an unbounded validated double number with default of 0.0.

The validation will be limited to ensuring the value de/serializes as a double, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0


constructor(defaultValue: Double, maxValue: Double, minValue: Double, widgetType: ValidatedNumber.WidgetType = if(maxValue == Double.MAX_VALUE || minValue == -Double.MAX_VALUE) WidgetType.TEXTBOX else WidgetType.SLIDER)

Parameters

defaultValue

Double. the default value of this wrapper

maxValue

Double. the maximum allowed value, inclusive

minValue

Double. the minimum allowed value, inclusive